<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2048游戏</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <h1>2048</h1>
        <div class="score-container">
            <div class="score-title">分数</div>
            <div id="score">0</div>
        </div>
        <div class="score-container">
            <div class="score-title">最高分</div>
            <div id="high-score">0</div>
        </div>
        <div class="grid"></div>
        <div class="game-over">
            <p>游戏结束！</p>
            <button onclick="restartGame()">重新开始</button>
        </div>
    </div>
    <div class="audio-controls">
        <audio id="bgm" loop>
            <source src="bgm/Goodfeeling.mp3" type="audio/mpeg">
            <source src="bgm/Reggaeandska.mp3" type="audio/mpeg">
            您的浏览器不支持 audio 元素。
        </audio>
        <button id="music-toggle">音乐: 开</button>
    </div>
    <script src="game.js"></script>
</body>
</html>
